package com.st.service.impl;

import java.util.List;

import com.st.dao.IDeptDao;
import com.st.dao.impl.DeptDaoImpl;
import com.st.entity.Dept;
import com.st.service.IDeptService;

public class DeptServiceImpl implements IDeptService{

	private IDeptDao deptDao = new DeptDaoImpl();
	
	@Override
	public List<Dept> getAll() {
		return deptDao.selectAll();
	}

	@Override
	public List search(String key) {
		return deptDao.selectByKey(key);
	}

}
